home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Q Twist List < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Q: Twist List
  2. Sent:        6/11/96 1:38 PM
  3. Received:    6/11/96 12:41 PM
  4. From:        Bernie Wieser, octavian@agt.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.  
  9. I'm getting rather confused about how to implement a twist down list that
  10. supports drag and drop in ODF.
  11.  
  12. The first question I had was about the best way to implement a twist down
  13. list...
  14.  
  15. I can't make one from "light weight" views since you are not allowed to
  16. have
  17. controls in them.  The twist down list requires a scroll bar.  (The text
  18. box in ODF Form has a scroll bar but this is not part of the edit text
  19. control.)
  20.  
  21. So it needs to be derived from FW_CView and FW_CNotifier.  I would override
  22. draw, event, and archive methods.
  23.  
  24. However, the ODF documentation recommends that for parts that provide
  25. selections, a content object be provided for everything selectable.  For a
  26. list, each element in the list would require a content object.  There would
  27. also be corresponding selection object.  These are attached to the frame,
  28. and the view is not a frame.   Then there is all the magic to support drag
  29. and drop.
  30.  
  31. It looks like such a control like a twist down list could not be
  32. implemented as a view.  It would require being a full blown part (as
  33. comprehensive as ODFDraw) to support drag and drop.
  34.  
  35. Is this a correct assessment?
  36.